package com.zte.claa.inficombo.csa.app.service.huaxiapr.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.zte.claa.inficombo.csa.app.util.JsonUtils;

/*
 * Author by 0283000106 
 */

@JsonInclude(JsonInclude.Include.NON_NULL)
public class HuaXiaRmRspGpioData {
	private List<Map<String, String>> gpio_data = new ArrayList<>();

	public List<Map<String,String>> getGpio_data() {
		return gpio_data;
	}

	public void setGpio_data(List<Map<String,String>> gpio_data) {
		this.gpio_data = gpio_data;
	}
	
	public Map<String, String> getGpioDataElement(int index){
		return gpio_data.get(index);
	}
	
	public void addGpioDataElement(Map<String, String> eMap){
		gpio_data.add(eMap);
	}
	
	public void removeGpioDataElement(Map<String, String> eMap){
		eMap.clear();
		gpio_data.remove(eMap);
	}
	
	public void clearGpioDataElement(){
//		Iterator<Map<String, String>> it = gpio_data.iterator();
//		while(it.hasNext()){
//			Map<String, String> x = it.next();
//		    x.clear();
//		}
		gpio_data.clear();
	}
	
	@Override
	public String toString() {
		String outputstr = JsonUtils.toJson(this);
		return outputstr;
	}
}
